<?php
    class xuatxubs
    {
        public $MaXuatXu = 0;
		public $TenXuatXu = '';
		
		public function getList($order = '', $start = 0, $num = 30, $all = 0)
		{
			$db = new xuatxudb();
			return $db->getList($this->MaXuatXu, $this->TenXuatXu, $order, $start, $num, $all);
		}
        
        public function add()
		{
			$db = new xuatxudb();
			return $db->add($this->TenXuatXu);
		}
		
		public function update()
		{
			$db = new xuatxudb();
			return $db->update($this->MaXuatXu,$this->TenXuatXu);
		}
		
		public function delete()
		{
			$db = new xuatxudb();
			return $db->delete($this->MaXuatXu);
		}
        
        public function issetTypes()
		{
			$db = new xuatxudb();
			return $db->issetTypes($this->MaXuatXu, $this->TenXuatXu);
		}
        
        public function issetType()
		{
			$db = new xuatxudb();
			return $db->issetType($this->TenXuatXu);
		}
    }
?>